package cn.stylefeng.guns.modular.basic.mapper;

import cn.stylefeng.guns.modular.basic.entity.BasicLoadingQuotation;
import cn.stylefeng.guns.modular.basic.model.params.BasicLoadingQuotationParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicLoadingQuotationResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 装车报价表 Mapper 接口
 * </p>
 *
 * @author zhucx
 * @since 2024-01-26
 */
public interface BasicLoadingQuotationMapper extends BaseMapper<BasicLoadingQuotation> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2024-01-26
     */
    List<BasicLoadingQuotationResult> customList(@Param("paramCondition") BasicLoadingQuotationParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2024-01-26
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") BasicLoadingQuotationParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2024-01-26
     */
    Page<BasicLoadingQuotationResult> customPageList(@Param("page") Page page, @Param("paramCondition") BasicLoadingQuotationParam paramCondition, @Param("condition") String condition,@Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2024-01-26
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") BasicLoadingQuotationParam paramCondition);

	BasicLoadingQuotationResult findBySpec(@Param("paramCondition")BasicLoadingQuotationParam param);

}
